projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b170a1
)
label: Fix rendering of rotated labels
author
Benjamin Otte
<otte@redhat.com>
Mon, 27 Sep 2010 18:49:39 +0000
(20:49 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 27 Sep 2010 18:49:39 +0000
(20:49 +0200)
gtk_paint_layout is utterly broken. Someone needs to fix it so we use
the cairo_t's matrix and don't juggle with both Pango and cairo matrices
everywhere.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index 241862f5fa32c7d6ed36c04a0c3ac980b996a51a..1f05d05936a3e3d4107c05908aeab0af5059a9af 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-4067,8
+4067,7
@@
gtk_label_draw (GtkWidget *widget,
window = gtk_widget_get_window (widget);
gtk_widget_get_allocation (widget, &allocation);
- x -= allocation.x;
- y -= allocation.y;
+ cairo_translate (cr, -allocation.x, -allocation.y);
gtk_paint_layout (style,
cr,